package day1702;

public class xcal extends Thread{
    private String a;

    public xcal(String a) {
        this.a = a;
    }

    public xcal() {
    }

    @Override
    public void run() {
        for (int i =0;i<100;i++){
            try {
                xcal.sleep(100);//等待多少毫秒
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(a+i);
        }
    }
}